home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / aasmacros / aj_pt.doc < prev    next >
Text File  |  1993-01-21  |  46KB  |  1,173 lines

  1. % AJ_PT.STY -- AJ plano tables style.
  2.  
  3. % Plano tables are camera-ready pages that are included in a typeset
  4. % article the same way as line drawings, graphs, and other camera-ready
  5. % art, i.e., as "planographic" figures.  This file is parameterized so
  6. % that the tables are appropriate for the AJ.
  7.  
  8. % My convention for identifying configuration information is for styles
  9. % to define the five parameters below.
  10.  
  11. \def\revtex@ver{1.1}        % Version number of this file.
  12. \def\revtex@date{10 Jan 93}    % Revision date.
  13. \def\revtex@org{AAS}        % Sponsoring organization.
  14. \def\revtex@jnl{AJ}        % Applicable journal, if specific.
  15. \def\revtex@genre{plano tables}    % Document "type".
  16.  
  17. % Display identifying message on screen and in logfile.
  18.  
  19. \typeout{\revtex@org\space \revtex@jnl\space \revtex@genre\space substyle,
  20.     v\revtex@ver\space <\revtex@date>.}
  21.  
  22. % The following mini-colophon identifies the article are having been
  23. % prepared with this macro package.  The \revtex@pageid command only
  24. % defines the formatting of this colophon; its existence and placement
  25. % within the printed article is controlled by the use of this command
  26. % in the style file.
  27.  
  28. \def\revtex@pageid{\xdef\@thefnmark{\null}
  29.     \@footnotetext{This \revtex@genre\space was prepared with the
  30.            \revtex@org\space \LaTeX\ macros v\revtex@ver.}}
  31.  
  32. % Issue a warning if manuscripts are formatted with type smaller than 12pt.
  33.  
  34. \def\genre@MS{manuscript}
  35. \ifx\revtex@genre\genre@MS
  36.   \ifnum\@ptsize<2
  37.     \typeout{Warning: Undersize \revtex@genre\space font (1\@ptsize\space pts).
  38.     Use 12pt documentstyle option.}
  39.   \fi
  40. \fi
  41.  
  42. %  ****************************************
  43. %  *            INITIALIZATION            *
  44. %  ****************************************
  45.  
  46. % Initialization has to occur at the head of this file because LaTeX's
  47. % "plain" pagestyle is used to establish defaults.  These are modified
  48. % below to suit the requirements of this journal.
  49.  
  50. %\@input{art8.sty}
  51.  
  52. \ps@plain            % Use "plain" pagestyle for defaults.
  53.  
  54. %  ****************************************
  55. %  *            PAGE LAYOUT               *
  56. %  ****************************************
  57.  
  58. % Create "plaintop" page style that has folios at top of page.
  59.  
  60. \def\ps@plaintop{\let\@mkboth\@gobbletwo
  61.     \def\@oddfoot{}\def\@oddhead{\rm\hfil--\space\thepage\space--\hfil}
  62.     \def\@evenfoot{}\let\@evenhead\@oddhead}
  63.  
  64. %\pretolerance=10000             % Disable hyphenation
  65.  
  66. % The following gives "reasonable" ragged right results.
  67.  
  68. %\@rightskip=\z@ plus 4em\rightskip\@rightskip
  69.  
  70. % Page size, spacing parameters, etc.
  71.  
  72. \newdimen\@fmwidth \@fmwidth=44pc    % Front matter width
  73. \newdimen\@bodywidth \@bodywidth=44pc    % Body text width
  74. \textwidth=\@bodywidth
  75. \textheight=8.9in
  76. \topmargin=0in
  77. \headheight=0in % .15in
  78. \headsep=0in % .35in
  79. \oddsidemargin=0in
  80. \evensidemargin=0in
  81. \parindent=1em
  82. \parskip=0ex
  83. \columnsep=1pc
  84.  
  85. \hoffset=-2.5pc        % To compensate for wide \textwidth
  86. \tolerance=400        % 2x "normal" value; cuts down on overfull complaints
  87.  
  88. % For landscape plano tables.
  89.  
  90. \def\ptlandscape{\textwidth=9in \textheight=6.5in \hoffset=0in}
  91.  
  92. %\@input{styopts.sty}
  93.  
  94. %  ****************************************
  95. %  *           STYLE OPTIONS              *
  96. %  ****************************************
  97.  
  98. % Make footnotes same size as main text.
  99.  
  100. %\let\footnotesize=\normalsize
  101.  
  102. % Define parameters to adjust the baselineskip.
  103. % These are passed as the scale factor argument to \baselinestretch.
  104.  
  105. \def\@tightleading{1.1}
  106. \def\@doubleleading{1.6}
  107.  
  108. % Double-space by default.  Observe that you double-space in LaTeX by
  109. % resetting \baselinestretch, which is essentially a scale factor for
  110. % \baselineskip (= leading, for you typographophiles).  The style uses
  111. % the \@doubleleading factor, defined above.
  112.  
  113. %\def\baselinestretch{\@doubleleading}
  114.  
  115. % The \tighten command merely resets the \baselinestretch to a
  116. % smaller factor, resulting in single-column text that is more closely
  117. % spaced.  (This will always work.)  Tightening the vertical spacing
  118. % in the text results in output that is more attractive for distribution
  119. % to colleagues who are primarily interested in reading the paper, as
  120. % opposed to copy editing it.  Double-spaced output for referees and
  121. % copy editors is, however, the main objective of this style, hence
  122. % double-spacing occurs by default.  The same effect as \tighten
  123. % can be achieved by using the "tighten" document style option.
  124. %
  125. %    \tighten
  126. %
  127. % \tighten is intended for use in the preamble of the article.
  128.  
  129. %\def\tighten{\def\baselinestretch{\@tightleading}}
  130. \def\tighten=\relax
  131. \let\tightenlines=\tighten
  132.  
  133. % For authors who feel compelled to change between single and double
  134. % spacing in the manuscript, \singlespace and \doublespace commands
  135. % are provided.  (Following recommendations of AAS Publications Board
  136. % Subcommittee on Preprints.)
  137. %
  138. %    \singlespace
  139. %    \doublespace
  140.  
  141. \def\singlespace{\def\baselinestretch{\@tightleading}\normalsize}
  142. \def\doublespace{\def\baselinestretch{\@doubleleading}\normalsize}
  143.  
  144. % Upper case for sections (optional upper case items).  These are created
  145. % so that some headings can be toggled between mixed case and upper case
  146. % readily.  Headings that might be changed can be wrapped in the style
  147. % file in \sec@upcase{TEXT} constructs; the expansion of \sec@upcase is
  148. % controlled here.  It is `\relax' by default (mixed case heads), and can
  149. % easily be changed to `\uppercase' if desired.  If mixed case headings
  150. % are wanted by the editor, authors MUST supply mixed case text, although
  151. % this is what authors should be doing anyway.  (Mixed can be converted
  152. % to upper, but the reverse transformation cannot be automated.)
  153.  
  154. %\def\sec@upcase#1{\uppercase{#1}}
  155. \def\sec@upcase#1{\relax{#1}}
  156.  
  157. % Sometimes people want to number equations by section, rather than
  158. % sequentially through the whole paper.
  159.  
  160. \def\eqsecnum{
  161.     \@newctr{equation}[section]
  162.     \def\theequation{\hbox{\normalsize\arabic{section}-\arabic{equation}}}}
  163.  
  164. %\@input{slug.sty}
  165.  
  166. %  ****************************************
  167. %  *              SLUG LINE               *
  168. %  ****************************************
  169.  
  170. % There are some obvious style-dependent parameters and formatting
  171. % instructions in this file.  The object has been to keep the author
  172. % commands (the user interface, if you will) society, journal, and
  173. % style-independent, while the style-specific parameters and commands
  174. % are kept below that level.  Commands and parameters that are susceptible
  175. % to external interpretation, either by authors or publishers/translators,
  176. % are identified by indented comment lines, with the semantics of command
  177. % arguments described in upper case text.
  178. %
  179. %    \@journalname{JOURNAL NAME}
  180. %    \cpr@holder{COPYRIGHT HOLDER}
  181.  
  182. \def\@journalname{The Astropolitical Journal}
  183. \def\cpr@holder{American Astronomical Society}
  184.  
  185. % Journal and article identification information is established by the
  186. % editorial staff.  The following macros are used by personnel at the
  187. % editorial office to annotate/record slug-line data and should be included
  188. % in the manuscript preamble, i.e., before the LaTeX \begin{document}.  All
  189. % they do is globally define other TeX control sequences that are used by
  190. % other macros at a later time.
  191. %
  192. %    \received{RECEIPT DATE}
  193. %    \revised{REVISION DATE}
  194. %    \accepted{ACCEPTANCE DATE}
  195. %    \journalid{VOL}{JOURNAL DATE}
  196. %    \articleid{START PAGE}{END PAGE}
  197. %    \paperid{ID}
  198. %    \ccc{CODE}
  199. %
  200. % For preprints and submitted manuscripts in draft/referee format, etc.,
  201. % the slug-line information is irrelevant and in those kinds of style,
  202. % the data are never used.  In my estimation, it is perfectly acceptable
  203. % to have these commands in the file (for future use), so they are defined
  204. % in the usual way.
  205.  
  206. \def\received#1{\gdef\@recvdate{#1}} \received{\relax}
  207. \def\revised#1{\gdef\@revisedate{#1}} \revised{\relax}
  208. \def\accepted#1{\gdef\@accptdate{#1}} \accepted{\relax}
  209. \def\journalid#1#2{\gdef\@jourvol{#1}\gdef\@jourdate{#2}}
  210. \def\articleid#1#2{\gdef\@startpage{#1}\gdef\@finishpage{#2}}
  211. \def\paperid#1{\gdef\@paperid{#1}} \paperid{MS-0001-SAMP}
  212. \def\ccc#1{\gdef\CCC@code{#1}} \ccc{000-00\$75.95-CDB}
  213.  
  214. % Following copyright and running heads \defs are stubs.
  215. %\let\cpright=\@gobbletwo
  216. %\let\righthead=\@gobble
  217. %\let\lefthead=\@gobble
  218.  
  219. % Copyright data.  Permit the author/editor to supply a copyright
  220. % "type" as well as the year.
  221. %
  222. %    \cpright{TYPE}{YEAR}
  223. %
  224. % Copyright types are designated by name and converted to numeric form.
  225. % The mapping of types is defined by the code that sets the @cprtype
  226. % counter.  The language of the copyright notices is defined by \@slug.
  227.  
  228. \def\cpright#1#2{\@nameuse{cpr@#1} \gdef\cpr@year{#2}
  229.     \typeout{`#1' copyright \cpr@year.}}
  230.  
  231. \newcount\@cprtype \@cprtype=\@ne    % Default copyright type.
  232. \def\cpr@AAS{\@cprtype=1}
  233. \def\cpr@PD{\@cprtype=2}
  234. \def\cpr@Crown{\@cprtype=3}
  235. \def\cpr@none{\@cprtype=4}
  236. \def\cpr@ASP{\@cprtype=5}
  237.  
  238. \def\cpr@year{\number\year}        % Default copyright year.
  239.  
  240. % \@slug determines formatting of slugline information.
  241.  
  242. \def\@slug{\par\noindent
  243.     \ifcase\@cprtype
  244.     \relax
  245.     \or
  246.     Copyright \cpr@year\space by the \cpr@holder.
  247.     \or
  248.     This article is in the public domain.
  249.     \or
  250.     Crown copyright \cpr@year\space by the \cpr@holder.
  251.     \or
  252.     No copyright is claimed for this article.
  253.     \or
  254.     Copyright \cpr@year\space by the ASP.
  255.     \fi
  256.     \par\noindent
  257.     Manuscript number \@paperid.\par\noindent
  258.     \CCC@code
  259. }
  260.  
  261. % Authors may be asked to supply running head information.  We use the
  262. % language of the publisher here to distinguish between two pieces of
  263. % information: the left head frequently contains an author list (last
  264. % names, possibly truncated as et al.), while the right head frequently
  265. % contains an abbreviated form of the paper title.  The \lefthead and
  266. % \righthead commands merely collect the information and buffer the text.
  267. %
  268. %    \lefthead{TEXT}
  269. %    \righthead{TEXT}
  270.  
  271. \def\lefthead#1{\gdef\@versohead{#1}} \lefthead{\relax}
  272. \def\righthead#1{\gdef\@rectohead{#1}} \righthead{\relax}
  273.  
  274. % \@runheads determines formatting of running head information.
  275.  
  276. \def\@runheads{\@tempcnta\c@page
  277.   \@whilenum \@tempcnta >0\do{
  278.     \vskip 3ex
  279.     \hbox to30pc{\small\expandafter\uppercase\expandafter{\@versohead}:
  280.     \expandafter\uppercase\expandafter{\@rectohead}\hfil}
  281.     \advance\@tempcnta by\m@ne}
  282. }
  283.  
  284. % The \slugcomment command is provided so authors or editors may include
  285. % a remark about the manuscript that may be desired in print for some
  286. % styles.  For instance, authors like to include information about the
  287. % journal and publication date of accepted papers ("To appear in AJ,
  288. % November 1992").
  289. %
  290. %    \slugcomment{TEXT}
  291. %
  292. % The formatting of the \slugcomment information is controlled by the
  293. % \sluginfo command.
  294.  
  295. \def\slugcomment#1{\gdef\slug@comment{#1}} \slugcomment{\relax}
  296.  
  297. % Editorial offices like to have receipt and acceptance dates on the front
  298. % page for tracking purposes.  The current practice is to require the author
  299. % to type Received___________________ and Accepted ________________ lines
  300. % for the staff to type on.  The \@dates command will typeset either rules
  301. % or the dates specified in \received and/or \accepted commands.  Note that
  302. % authors should not include \received and \accepted.
  303.  
  304. \def\@rcvaccrule{\vrule\@width1.75in\@height0.5pt\@depth\z@}
  305.  
  306. % \@dates determines formatting of MS date information.
  307.  
  308. \def\@dates{{Received}\space%
  309.     \if\@recvdate\relax\@rcvaccrule\else\@recvdate\fi;%
  310.     \hspace{1.5em}{accepted}\space%
  311.     \if\@accptdate\relax\@rcvaccrule\else\@accptdate\fi%
  312. }
  313.  
  314. % The \sluginfo command is executed automatically when a \begin{abstract} is
  315. % encountered, so it is not necessary (or appropriate) for the author to
  316. % include this line explicitly.  The received/accepted business is a
  317. % concern only for the editorial staff, hence we have arranged for the
  318. % author not to have to fuss with it.
  319.  
  320. \def\sluginfo{{\center
  321.     \@dates
  322.     %\@slug
  323.     %\@runheads
  324.     \endcenter}}
  325.  
  326. \let\dates=\sluginfo    % Backwards compatibility
  327.  
  328. %\@input{text.sty}
  329.  
  330. %  ****************************************
  331. %  *            FRONT MATTER              *
  332. %  ****************************************
  333.  
  334. % Make adjustments to LaTeX abstract style: optional upper case heading,
  335. % retain current type size (should be normalsize), ignore twocolumn option
  336. % in this substyle, add \sluginfo, and start abstract on fresh page.
  337.  
  338. \def\abstract{\sluginfo\clearpage
  339.     \begin{center}
  340.     {\bf{ABSTRACT}}
  341.     \end{center}
  342.     \quotation 
  343. }
  344.  
  345. % Title and author identification is by way of standard LaTeX commands
  346. % \title and \author, although the macros themselves are rather different.
  347. % The information is typeset by these macros in this style, rather than
  348. % being buffered as per regular LaTeX.  The authors' principal affiliation
  349. % is specified with a separate macro \affil.  Each \author command should
  350. % be followed by its own \affil (or address).
  351. %
  352. % Authors often have affiliations above and beyond their main employer,
  353. % and these are specified with the \altaffilmark and \altaffiltext commands.
  354. % These commands behave like the \footnotemark and \footnotetext commands
  355. % of LaTeX.  \altaffilmark is appended to author's names in the \author
  356. % lists, and generates the superscript identification numbers.
  357. % The text for the individual alternate affiliations is generated by the
  358. % \altaffiltext command.  It is up to the author to make sure that the
  359. % \altaffilmark numbers attached to authors' names correspond to the correct
  360. % alternate affiliation.
  361. %
  362. %     \title{LUCID TEXT}
  363. %     \author{NAME(S)}
  364. %     \authoraddr{AUTHOR'S POSTAL ADDRESS}
  365. %     \affil{AFFILIATION}
  366. %     \altaffilmark{TAG NUMBER(S)}
  367. %     \altaffiltext{NUMERICAL TAG}{TEXT}
  368. %
  369. % The typesetting performed by these commands is appropriate for the top of
  370. % the first text page of the manuscript.  They could as well be used on a
  371. % title cover page, but vertical placement would have to be controlled by
  372. % the author.   This is not to be encouraged, since I want to discourage
  373. % the introduction of any extra horizontal or vertical space.
  374.  
  375. \def\title#1{{\def\baselinestretch{\@tightleading}
  376.     \center\large\bf{#1}\endcenter}
  377.     \thispagestyle{empty}}
  378. \def\author#1{{\topsep\z@\center\normalsize#1\endcenter}}
  379. \let\authoraddr=\@gobble
  380. \def\affil#1{\vspace*{-2.5ex}{\topsep\z@\center#1\endcenter}}
  381. \def\altaffilmark#1{$^{#1}$}
  382. \def\altaffiltext#1#2{\footnotetext[#1]{#2}\stepcounter{footnote}}
  383.  
  384. % Redefine the LaTeX \and command for this style.
  385.  
  386. \def\and{\vspace*{-0.5ex}{\topsep\z@\center and\endcenter}}
  387.  
  388. %  ****************************************
  389. %  *             KEYWORDS                 *
  390. %  ****************************************
  391.  
  392. % Keywords environment.  Keywords, subject headings, etc., are accommodated
  393. % only as a piece of text; the \keywords command indents if necessary and
  394. % supplies the proper leading text ("Keywords:", "Subject headings:", etc.)
  395. % but does not apply formatting to the user's keyword text.  The author
  396. % must supply the correct punctuation according to the journal style.
  397. %
  398. % Note that the editors of A&A, AJ, and MNRAS have discussed the issue
  399. % of keywords, and there is disagreement about whether "subject headings"
  400. % or "keywords" should appear after abstracts in astronomical papers.
  401. % It does not really matter what the macro is called, so I will stick
  402. % to \keywords since I don't know what the difference is anyway.
  403.  
  404. \def\@keywordtext{Subject headings}
  405. \def\@keyworddelim{---}
  406.  
  407. \def\keywords#1{\vspace*{-.7ex}%\vspace{\z@}
  408.     \if@twocolumn\noindent{{\it\@keywordtext:\/}\space\@kwds{#1}}
  409.     \else{\quote{\it\@keywordtext:\/}\space\@kwds{#1}\endquote}
  410.     \fi}
  411.  
  412. \let\subjectheadings=\keywords
  413.  
  414. \def\@kwds#1{\def\@kwddlm{}\@for\@kwd:=#1\do
  415.       {\@kwddlm\def\@kwddlm{\space\@keyworddelim\penalty\@m\space}{\@kwd}}}
  416.  
  417. %  ****************************************
  418. %  *             FOOTNOTES                *
  419. %  ****************************************
  420.  
  421. % The following code redefines a few things so that spacing in footnotes is
  422. % different than LaTeX defaults.  The adjustment to \skip\footins increases
  423. % the amount of vspace inserted before the \footnoterule.  Redefine
  424. % \@makefntext to get proper indentation.
  425.  
  426. \skip\footins 4ex plus 1ex minus .5ex
  427. \footnotesep 3ex
  428.  
  429. %\long\def\@makefntext#1{\noindent\hbox to\z@{\hss$^{\@thefnmark}$}#1}
  430. %\long\def\@makefntext#1{\indent\hbox{$^{\@thefnmark}$}#1}
  431.  
  432. %  ****************************************
  433. %  *             SECTIONS                 *
  434. %  ****************************************
  435.  
  436. % \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}
  437. %            optional * [ALTHEADING]{HEADING}
  438. %    Generic command to start a section.
  439. %    NAME       : e.g., 'subsection'
  440. %    LEVEL      : a number, denoting depth of section -- e.g., chapter=1,
  441. %                 section = 2, etc.
  442. %    INDENT     : Indentation of heading from left margin
  443. %    BEFORESKIP : Absolute value = skip to leave above the heading.
  444. %                 If negative, then paragraph indent of text following
  445. %                 heading is suppressed.
  446. %    AFTERSKIP  : if positive, then skip to leave below heading, else
  447. %                 negative of skip to leave to right of run-in heading.
  448. %    STYLE      : commands to set style
  449. %  If '*' missing, then increments the counter.  If it is present, then
  450. %  there should be no [ALTHEADING] argument.
  451.  
  452. % Adjust section heading typography slightly.  This is one of the spots
  453. % where my personal preference is going to bite me.  Anyway, I have reduced
  454. % the size of the main section heads to whatever the normal size is for
  455. % the paper; I don't think it needs to be larger, especially when the
  456. % layout is double-spaced.
  457. %
  458. % Also, modify the indentation behavior so that ALL paragraphs, including
  459. % those first after section heads, are indented.  This is consonant with
  460. % the styles of many journals, although it's non-standard typographic practice.
  461.  
  462. \def\section{\@startsection {section}{1}{\z@}
  463.   {5ex plus .5ex}{1ex plus .2ex}{\normalsize\bf}}
  464. \def\subsection{\@startsection{subsection}{2}{\z@}
  465.   {5ex plus .5ex}{1ex plus .2ex}{\normalsize\bf}}
  466. \def\subsubsection{\@startsection{subsubsection}{3}{\z@}
  467.   {5ex plus .5ex}{1ex plus .2ex}{\normalsize\it}}
  468.  
  469. \def\thesection{\@arabic{\c@section}.}
  470. \def\thesubsection{\thesection\@arabic{\c@subsection}.}
  471. \def\thesubsubsection{\thesubsection\@arabic{\c@subsubsection}.}
  472. \def\theparagraph{\thesubsubsection\@arabic{\c@paragraph}:}
  473.  
  474. % For AJ, acknowledgments are set off from main body text simply by
  475. % vertical space (no heading or type size change).  I do the same for
  476. % the AAS manuscript style.  For use in producing more polished output
  477. % for other journals, this macro might generate text saying
  478. % "Acknowledg[e]ments".
  479.  
  480. \def\acknowledgments{\vskip 3ex plus .8ex minus .4ex}
  481. \let\acknowledgements=\acknowledgments            % second spelling
  482.  
  483. % LaTeX sectioning tools.
  484.  
  485. \def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth
  486.      \def\@svsec{}\else
  487.      \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname\hskip 1em }\fi
  488.      \@tempskipa #5\relax
  489.       \ifdim \@tempskipa>\z@
  490.         \begingroup \center#6\relax
  491.           \@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M 
  492.       \sec@upcase{#8}\par}%
  493.         \endcenter\endgroup
  494.        \csname #1mark\endcsname{#7}\addcontentsline
  495.          {toc}{#1}{\ifnum #2>\c@secnumdepth \else
  496.                       \protect\numberline{\csname the#1\endcsname}\fi
  497.                     #7}\else
  498.         \def\@svsechd{#6\hskip #3\@svsec \sec@upcase{#8}\csname #1mark\endcsname
  499.                       {#7}\addcontentsline
  500.                            {toc}{#1}{\ifnum #2>\c@secnumdepth \else
  501.                              \protect\numberline{\csname the#1\endcsname}\fi
  502.                        #7}}\fi
  503.      \@xsect{#5}}
  504.  
  505. \def\@ssect#1#2#3#4#5{\@tempskipa #3\relax
  506.    \ifdim \@tempskipa>\z@
  507.      \begingroup #4\center\@hangfrom{\hskip #1}{\interlinepenalty \@M
  508.        \sec@upcase{#5}\par}\endcenter\endgroup
  509.    \else \def\@svsechd{#4\hskip #1\relax \sec@upcase{#5}}\fi
  510.     \@xsect{#3}}
  511.  
  512. %  ****************************************
  513. %  *          EQUATION NUMBERING          *
  514. %  ****************************************
  515.  
  516. % Redefine \appendix so that equation numbers are prepended with 
  517. % \theappendix number.  Reset equation counter so that equation
  518. % numbers in the appendix begin again with 1.  Note that the
  519. % \appendix command is NOT a sectioning command; it is merely
  520. % a delimiting markup between the main body of the paper and the
  521. % appendix.  Sections in the appendix are still started with
  522. % \section commands.
  523. %
  524. %    \appendix
  525.  
  526. \def\appendix{\par
  527.   \setcounter{section}{0}
  528.   \setcounter{subsection}{0}
  529.   \setcounter{equation}{0}
  530.   \def\thesection{\Alph{section}.}
  531.   \def\theequation{\hbox{\normalsize\Alph{section}\arabic{equation}}}}
  532.  
  533. % Define mathletters environment.  This is a wrapper that goes
  534. % *around* (outside of) equation or eqnarray environments.
  535. %
  536. %    \begin{mathletters}
  537. %    \end{mathletters}
  538.  
  539. \newcounter{cureqno}
  540.  
  541. \newenvironment{mathletters}{\refstepcounter{equation}%
  542.     \setcounter{cureqno}{\value{equation}}%
  543.     \let\@curtheeqn\theequation%
  544.     \edef\cur@eqn{\csname theequation\endcsname}%
  545.     \def\theequation{\cur@eqn\alph{equation}}%
  546.     \setcounter{equation}{0}}%
  547.     {\let\theequation\@curtheeqn%
  548.     \setcounter{equation}{\value{cureqno}}}
  549.  
  550. % The \eqnum command allows the author to override all automatic
  551. % equation marking schemes.
  552. %
  553. %    \eqnum{TEXT}
  554.  
  555. \def\eqnum#1{\def\theequation{#1}\let\@currentlabel\theequation
  556.     \addtocounter{equation}{\m@ne}}
  557.  
  558. %  ****************************************
  559. %  *          BIBLIOGRAPHY                *
  560. %  ****************************************
  561.  
  562. % Bibliography/references environment.  For the time being, I don't think
  563. % it would be a good idea to force an implementation based on BibTeX,
  564. % although I'll prepare for that eventuality by using the constructs and
  565. % general ideas of the LaTeX thebibliography environment.  Adjustments
  566. % have been made so that the \cite-\bibitem mechanism can be used to cite
  567. % references symbolically while maintaining proper citation syntax within
  568. % the paper; the author must create the citation label for each reference
  569. % in proper journal format in the \bibitem command.
  570. %
  571. %    \begin{thebibliography}
  572. %    \bibitem[LABEL]{TEXTTAG} \reference <bibliographic data>
  573. %    \end{thebibliography}
  574. %
  575. % where LABEL must adhere to the journal's standards, e.g. "Abt 1986".
  576. %
  577. % It is not necessary to use the thebibliography environment.  This style
  578. % defines a references environment that simply sets off the list of references
  579. % and adjusts spacing parameters.  It is not possible to use \bibitems
  580. % within the references environment.  (The \reference command cannot be
  581. % shortened to \ref; \ref is used in vanilla LaTeX for cross-referencing.)
  582. %
  583. %    \begin{references}
  584. %    \reference <bibliographic data>
  585. %    \end{references}
  586. %
  587. %    \markcite{TEXT}
  588. %
  589. % Observe that the bibliographic data supplied by the author must also
  590. % conform to the standards of the journal.  I have elected not to burden
  591. % authors with tedious LaTeX commands which would require many curly braces
  592. % to delimit the bibliographic fields because many of the journals I have
  593. % targeted in this project have agreed to reduce typographic overhead (bolding,
  594. % italicizing, etc.) in reference lists.  (See Abt's editorial in ApJ 357.)
  595. % It is the responsibility of the author to get these fields in the proper
  596. % order with the correct punctuation; the information will be typeset as is,
  597. % i.e., in roman with no size or style changes.
  598. %
  599. % Macros are provided for many of the oft-referenced journals so that authors
  600. % may use the LaTeX names rather than having to look up a particular journal's
  601. % specific abbreviation.  In principle, all the journals should be using the
  602. % same abbreviations, too, but I anticipate some changes in the specific
  603. % abbreviations before a set is finally settled on.  As long as these macros
  604. % are kept up to date, authors need not be concerned about such editorial
  605. % changes.
  606. %
  607. % Corresponding with the non-BibTeX references environment and \reference
  608. % command for the reference list is the \markcite command.  This can be
  609. % used to identify in-text citations; in this case, the author provides
  610. % the actual citation text as opposed to the symbolic tag.  The use of
  611. % this is encouraged, even for journals where no special formatting of
  612. % citation call-outs is required; it is crucial for the future use of
  613. % on-line browsers.
  614.  
  615. \def\references{\subsection*{REFERENCES}
  616.     \bgroup\parindent=\z@\parskip=\itemsep
  617.     \def\refpar{\par\hangindent=3em\hangafter=1}}
  618. \def\endreferences{\refpar\egroup\revtex@pageid}
  619.  
  620. \def\thebibliography{\subsection*{REFERENCES}
  621.     \list{\null}{\leftmargin 3em\labelwidth\z@\labelsep\z@\itemindent -3em
  622.     \usecounter{enumi}}
  623.     \def\refpar{\relax}
  624.     \def\newblock{\hskip .11em plus .33em minus .07em}
  625.     \sloppy\clubpenalty4000\widowpenalty4000
  626.     \sfcode`\.=1000\relax}
  627. \def\endthebibliography{\endlist\revtex@pageid}
  628.  
  629. \def\@biblabel#1{\relax}
  630. %\def\@cite#1#2{({#1\if@tempswa , #2\fi})}
  631. \def\@cite#1#2{#1\if@tempswa , #2\fi}
  632.  
  633. \def\reference{\relax\refpar}  % Generic: might be better...
  634. \def\markcite#1{#1\relax}
  635.  
  636. % Modify \@citex so that individual citation texts are NOT hboxed.
  637. % This allows TeX to break lines at spaces between words in citations.
  638. % Remove the obnoxious {\bf ?} that was inserted in the text when
  639. % undefined citations are encountered; here, the warning message is
  640. % printed only on the terminal.
  641.  
  642. \def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
  643.   \def\@citea{}\@cite{\@for\@citeb:=#2\do
  644.     {\@citea\def\@citea{,\penalty\@m\ }\@ifundefined
  645.        {b@\@citeb}{\@warning
  646.        {Citation `\@citeb' on page \thepage \space undefined}}%
  647. {\csname b@\@citeb\endcsname}}}{#1}}
  648. % Permit \keywords declaration, but eat the contents.
  649.  
  650. \let\keywords=\@gobble
  651. \let\subjectheadings=\@gobble
  652.  
  653. %\@input{tblfig.sty}
  654.  
  655. %  ****************************************
  656. %  *         TABLES AND FIGURES           *
  657. %  ****************************************
  658.  
  659. % Additions and adjustments for tables and figures.
  660.  
  661. % Footnotes for tables are to be identified with lower case alphabetics,
  662. % rather than numeric.  \tablenotemark and \tablenotetext commands are
  663. % provided analogous to \footnotemark and \footnotetext, but with the
  664. % identifier *required*, like \altaffilmark and \altaffiltext.  The
  665. % \tablenotetext must be specified before the \end{table}, since
  666. % \end{table} displays it.
  667. %
  668. %     \tablenotemark{TAG LETTER(S)}
  669. %     \tablenotetext{ALPHA TAG}{TEXT}
  670. %
  671. % Note that TAG LETTER == ALPHA TAG for corresponding text.  It is the
  672. % responsibility of the author to get the correspondence correct.
  673. %
  674. % The table footnotes are coupled to the table in which they occur, rather
  675. % than being associated with a particular page, and they are printed with
  676. % the table (relatively close to the caption) instead of appearing at the
  677. % extreme bottom of the page.  This is done to ensure that the notes wind
  678. % up on the same page as the table, since tables are floats and can migrate
  679. % from one page to another.  There is the additional benefit that the notes
  680. % are unambiguously attached to the proper table, which is what is required
  681. % in the event that the editorial requirement of one table only per page
  682. % is ever changed to permit several tables per page.
  683. %
  684. % Footnotes are NOT supported for figures.
  685.  
  686. \def\tablenotemark#1{\rlap{$^{\rm #1}$}}
  687.  
  688. % The \tablenotetext command buffers the table note text and the "proper"
  689. % tablenote formatting information in a token buffer.  The tablenotes are
  690. % dispensed into the vertical page list by \spew@tblnotes, which is
  691. % executed by \end{table}.  Note that certain "global" tablenote formatting
  692. % details are handled by \spew@tblnotes, which also clears the tblnote list.
  693. % Praise and honor are due to Kresten Krab Thorup (krab@iesd.auc.dk) for
  694. % posting ftn.sty to the Usenet, from which I drew the technique.
  695.  
  696. \newtoks\@temptokenb
  697. \def\tblnote@list{}
  698.  
  699. \def\tablenotetext#1#2{
  700.     \@temptokena={\vspace{.5ex}{\noindent\llap{$^{#1}$}#2}\par}
  701.     \@temptokenb=\expandafter{\tblnote@list}
  702.     \xdef\tblnote@list{\the\@temptokenb\the\@temptokena}}
  703.  
  704. \def\spew@tblnotes{
  705.   \ifx\tblnote@list\@empty\relax
  706.   \else
  707.     \vspace{4.5ex}
  708.     \footnoterule
  709.     \vspace{.5ex}
  710.     {\footnotesize\tblnote@list}
  711.     \gdef\tblnote@list{}
  712.   \fi}
  713.  
  714. \def\endtable{\spew@tblnotes\end@float}
  715. \@namedef{endtable*}{\spew@tblnotes\end@dblfloat}
  716.  
  717. % Add a \tableline command for use in tabular environments.  This command
  718. % produces the horizontal rule(s) between the column headings and the body
  719. % of the table.  Authors are discouraged from using any \hlines themselves,
  720. % and are typically forbidden from using vertical rules by editors.
  721.  
  722. \let\tableline=\hline
  723.  
  724. % \@makecaption determines formatting for figure and table captions.  
  725. % For manuscripts, all captions should be set as flushleft paragraphs.
  726.  
  727. \long\def\@makecaption#1#2{\vskip 2ex\noindent #1 #2\par}
  728.  
  729. % The \tablenum command allows the author to override all automatic
  730. % table marking schemes.
  731. %
  732. %    \tablenum{TEXT}
  733.  
  734. \def\tablenum#1{\def\thetable{#1}\let\@currentlabel\thetable
  735.     \addtocounter{table}{\m@ne}}
  736.  
  737. % The \figurenum command allows the author to override all automatic
  738. % figure marking schemes.
  739. %
  740. %    \figurenum{TEXT}
  741.  
  742. \def\figurenum#1{\def\thefigure{#1}\let\@currentlabel\thefigure
  743.     \addtocounter{figure}{\m@ne}}
  744.  
  745. %  ****************************************
  746. %  *           PLANO TABLES               *
  747. %  ****************************************
  748.  
  749. % Plano tables are camera-ready pages that are included in a typeset
  750. % article the same way as line drawings, graphs, and other camera-ready
  751. % art, i.e., as "planographic" figures.  There are desirable properties
  752. % for a formatter to have that are somewhat above and beyond LaTeX'x
  753. % tabular environment that would facilitate the creation of such tables.
  754. % Among these are breaking long tables across pages, using footnotes
  755. % in a table, specifying comments and references for tables, etc.
  756. %
  757. % What follows was inspired by supertab.sty by Theo Jurriens, 1988.
  758.  
  759. % Commands for identifying table elements in a consistent way.  Observe
  760. % that the formatting is embedded in the macro definitions so that the
  761. % author doesn't need to be concerned about stylistic nuances.
  762. %
  763. %    \tablecaption{TEXT}
  764. %    \tablehead{TEXT}
  765. %    \colhead{HEADING}
  766. %    \tabletail{TEXT}
  767. %    \tablewidth{DIMEN}
  768. %    \tableheadfrac{NUM}
  769. %
  770. % AJ has no "standard" widths for camera-ready tables, they simply need
  771. % to be narrower than the page.  Landscape orientation is acceptable,
  772. % and I have provided the pseudo-option \ptlandscape that resets the
  773. % page dimensions; the author is still responsible for running the
  774. % local DVI translator with the proper parameters so that landscape
  775. % pages actually emerge from the laser printer.
  776.  
  777. \newbox\pt@box
  778. \newdimen\pt@width
  779. \newcount\pt@line
  780. \newcount\pt@nlines
  781. \newcount\pt@ncol
  782.  
  783. \def\colhead#1{\omit\hidewidth{#1}\hidewidth\global\advance\pt@ncol by\@ne}
  784. \def\tablecaption#1{\gdef\pt@caption{#1}} \def\pt@caption{\relax}
  785. \def\tablehead#1{\gdef\pt@head{
  786.     #1\hskip\tabcolsep\\[.7ex]\hline\relax\\[-1.5ex]}} \def\pt@head{\relax}
  787. \def\tabletail#1{\gdef\pt@tail{#1}} \def\pt@tail{\relax}
  788. \def\tablewidth#1{\pt@width=#1} \pt@width\textwidth
  789. \def\tableheadfrac#1{\gdef\pt@headfrac{#1}} \def\pt@headfrac{.1}
  790.  
  791. % Calculate the number of tabular rows that will fit in the body of the
  792. % table.  The height of the table body and the number of lines are
  793. % calculated thus:
  794. %
  795. %     bodyheight = \textheight * (1 - \pt@headfrac)
  796. %     \pt@nlines = bodyheight / (\arraystretch * \baselineskip)
  797. %
  798. % The row height can be seen to be valid algebraically if one examines the
  799. % definitions for \strutbox, \@setstrut, and \@array.  I could eliminate
  800. % this calculation, as well as its attendant parameters, if it were possible
  801. % to determine the accumulated height of the \halign box as TeX goes along.
  802.  
  803. \def\pt@calcnlines{\@tempdima\pt@headfrac\textheight
  804.     \@tempdimb\textheight\advance\@tempdimb by-\@tempdima
  805.     \@tempdima\arraystretch\baselineskip
  806.     \divide\@tempdimb by\@tempdima
  807.     \global\pt@nlines\@tempdimb}
  808.  
  809. % Define \pt@tabular, a ripoff of \@tabular but with \leavevmode removed
  810. % so tabular box can be set with \setbox.  I do this so that table notes
  811. % can be set to natural width of table, if desired.  Also, set \@acol
  812. % to \@ptabacol, which is called when building the preamble for the
  813. % \halign (assuming the first column format specification is "l", which
  814. % it should be for ApJ tables) so that \tabskip within the table is set
  815. % to \fill.  This permits us to toggle between natural and fixed-width
  816. % tables without requiring the user to change markup.  Note that by
  817. % forcing \tabskip always to be \fill, I pretty well nullify any
  818. % @{\hspace} commands the user puts in the template, but this environment
  819. % is for people who don't want to think about that sort of stuff anyway.
  820.  
  821. \def\pt@tabular{\hbox \bgroup $\let\@acol\@ptabacol 
  822.    \let\@classz\@tabclassz
  823.    \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}
  824.  
  825. \def\@ptabacol{\edef\@preamble{\@preamble \hskip \tabcolsep\tabskip\fill}}
  826.  
  827. % Permit different identifying strings, one for the first page of the
  828. % table and one for continuation pages.  LaTeX's \fnum@table is set to
  829. % one or the other automatically in the environment.  Note that caption
  830. % handling is not so graceful: you have to edit inside the big macros to
  831. % adjust this.  Someday, I will be ambitious enough to fix this.
  832.  
  833. \def\fnum@ptable{Table \thetable.}
  834. \def\fnum@ptablecont{Table \thetable.\space{\rm (continued)}}
  835.  
  836. \def\set@mkcaption{\long\def\@makecaption##1##2{
  837.     \center\large{\sc##1}\space##2\endcenter\vskip 1.5ex}}
  838. \def\set@mkcaptioncont{\long\def\@makecaption##1##2{
  839.     \center\large{\sc##1}\endcenter\vskip 1.5ex}}
  840.  
  841. % The environment definition.  It is desirable for the last portion of
  842. % a multi-page table to be \topinserted, rather than \midinserted.
  843. % At the moment, this doesn't happen.  It's not straightforward to
  844. % make that preference known at the *end* of table processing.
  845. %
  846. %    \begin{planotable}
  847. %    \end{planotable}
  848. %
  849. %    \startdata
  850.  
  851. \newenvironment{planotable}[1]{\def\pt@format{\string#1}%
  852.     \set@tblnotetext\pt@ncol=0}%
  853.     {\crcr\noalign{\vskip .7ex}\hline\hline\endtabular%
  854.     \pt@width\wd\pt@box\box\pt@box\spew@ptblnotes%
  855.     \typeout{Table \thetable\space has been set to width \the\pt@width}%
  856.     \endcenter\end@float}
  857.  
  858. \def\startdata{\pt@line=0\pt@calcnlines%
  859.     \ifdim\pt@width>\z@\def\@halignto{to \pt@width}\else\def\@halignto{}\fi%
  860.     \let\fnum@table=\fnum@ptable\set@mkcaption%
  861.     \@float{table}\center\caption{\pt@caption}\leavevmode%
  862.     \setbox\pt@box=\pt@tabular{\pt@format}%
  863.     \hline\hline\relax\\[-1.7ex]\pt@head}
  864.  
  865. % A kludgey kind of line delimiter is needed so that the line counter
  866. % can be checked prior to adding the line to the alignment box.  This
  867. % is bad because this form does not permit the addition of vertical
  868. % space using the [.5ex] construct; this has to be done with an explicit
  869. % \vskip.  And a disgusting \noalign is required, so I have to create
  870. % another silly piece of markup to accomplish this conveniently.
  871. %
  872. % What is desired, of course, is for this line count checking to take
  873. % place within the syntax of the regular LaTeX \\ command.  I have been
  874. % giving myself apoplexy trying to figure this out for the last 36 hours,
  875. % and I have decided I will have to wait for the onset of my "lucid
  876. % period" for a solution.  In the meantime...
  877.  
  878. \def\pt@nl{\global\advance\pt@line by\@ne%
  879.   \ifnum\pt@line=\pt@nlines%
  880.     \\\noalign{\vskip .7ex}\hline\endtabular\box\pt@box%
  881.     \endcenter\end@float\clearpage%
  882.     \addtocounter{table}{\m@ne}%
  883.     \let\fnum@table=\fnum@ptablecont\set@mkcaptioncont%
  884.     \@float{table}\center\caption{\pt@caption}\leavevmode%
  885.     \global\pt@ncol=0%
  886.     \setbox\pt@box=\pt@tabular{\pt@format}%
  887.     \hline\relax\\[-1.7ex]\pt@head%
  888.     \global\pt@line=0%
  889.   \else\\
  890.   \fi}
  891.  
  892. % Author markup commands for planotable environment line breaks.
  893. %
  894. %    \nl == \nextline
  895. %    \tablevspace{DIMEN}
  896. %    \tablebreak
  897.  
  898. \let\nl=\pt@nl
  899. \let\nextline=\pt@nl
  900.  
  901. \def\tablevspace#1{\noalign{\vskip{#1}}}
  902. \def\tablebreak{\pt@line\pt@nlines\advance\pt@line by\m@ne\pt@nl}
  903.  
  904. % We have some specialty heads that are sometimes wanted in tables.
  905. %
  906. %    \cutinhead{TEXT}
  907. %    \sidehead{TEXT}
  908.  
  909. \def\cutinhead#1{\noalign{\vskip 1.5ex}
  910.     \hline\pt@nl\noalign{\vskip -4ex}
  911.     \multicolumn{\pt@ncol}{c}{#1}\pt@nl
  912.     \noalign{\vskip .8ex}
  913.     \hline\pt@nl\noalign{\vskip -2ex}}
  914.  
  915. \def\sidehead#1{\noalign{\vskip 1.5ex}
  916.     \multicolumn{\pt@ncol}{@{\hskip\z@}l}{#1}\pt@nl
  917.     \noalign{\vskip .5ex}}
  918.  
  919. % Internal commands for dealing with table footnotes.  I had to hack at
  920. % these to make them co-exist with similarly/identically named commands
  921. % for non-plano tables.  This is admittedly ugly, and is on the agenda
  922. % for improved treatment Real Soon Now.
  923.  
  924. \def\set@tblnotetext{\def\tablenotetext##1##2{{%
  925.     \@temptokena={\vspace{0ex}{%
  926.     \parbox{\pt@width}{\hskip1em$^{\rm ##1}$##2}\par}}%
  927.     \@temptokenb=\expandafter{\tblnote@list}
  928.     \xdef\tblnote@list{\the\@temptokenb\the\@temptokena}}}}
  929.  
  930. \def\spew@ptblnotes{
  931.   \ifx\tblnote@list\@empty\relax
  932.   \else
  933.     \par
  934.     \vspace{2ex}
  935.     {\tblnote@list}
  936.     \gdef\tblnote@list{}
  937.   \fi}
  938.  
  939. % Special kinds of table footnotes.  Sometimes authors tabulate things
  940. % which have corresponding references, and it may be desirable to associate
  941. % these references with the table rather than (or in addition to) the
  942. % formal reference list.  Occasionally, authors wish to append a short
  943. % paragraph of explanatory notes that pertain to the entire table, but
  944. % which are different than the caption.
  945. %
  946. %    \tablerefs{REFERENCE LIST}
  947. %    \tablecomments{TEXT}
  948.  
  949. \def\tablerefs#1{\@temptokena={\vspace*{2.0ex}{%
  950.     {\rm References for Table \thetable.}\\%
  951.     \vspace*{1.6ex}%
  952.     \parbox{\pt@width}{#1}\par}}%
  953.     \@temptokenb=\expandafter{\tblnote@list}
  954.     \xdef\tblnote@list{\the\@temptokenb\the\@temptokena}}
  955.  
  956. \def\tablecomments#1{\@temptokena={\vspace*{2.0ex}{%
  957.     {\rm Notes to Table \thetable.}\\%
  958.     \vspace*{1.6ex}%
  959.     \parbox{\pt@width}{#1}\par}}%
  960.     \@temptokenb=\expandafter{\tblnote@list}
  961.     \xdef\tblnote@list{\the\@temptokenb\the\@temptokena}}
  962.  
  963. % Figure and table style parameters.
  964.  
  965. \def\thefigure{\@arabic\c@figure}
  966. \def\fnum@figure{{\rm Fig.\space\thefigure.---}}
  967.  
  968. \def\thetable{\@arabic\c@table}
  969. \def\fnum@table{{\rm Table \thetable:}}
  970.  
  971. % Figure and table float positions.
  972.  
  973. \def\fps@figure{bp}
  974. \def\fps@table{bp}
  975.  
  976. %  ****************************************
  977. %  *           EPS INCLUSIONS             *
  978. %  ****************************************
  979.  
  980. % Include Rokicki's epsf.sty file explicitly.
  981.  
  982. \@ifundefined{epsfbox}{\@input{epsf.sty}}{\relax}
  983.  
  984. % Simplified EPS inclusion macros so we can see how this goes...
  985. % These are layered on Rokicki's dvips material, and are dependent
  986. % on the author's use of that DVI driver.
  987. %
  988. %    \plotone{EPSFILE}
  989. %    \plottwo{EPSFILE}{EPSFILE}
  990. %    \plotfiddle{EPSFILE}{VSIZE}{ROT}{HSF}{VSF}{HTRANS}{VTRANS}
  991. %
  992. % \plotone inserts the plot in a space that is \columnwidth wide; the
  993. % plot is scaled so the horizontal dimension fits in the text width,
  994. % and the vertical dimension is scaled to maintain the aspect ratio.
  995. % \plottwo inserts two plots next to each other in one \columnwidth,
  996. % sort of like "two-up" mode.
  997. %
  998. %    EPSFILE    name of file with EPS
  999. %
  1000. % The following arguments are for the \plotfiddle macro which formats
  1001. % the \special itself, prepares vspace, etc.  This completely bypasses
  1002. % Rokicki's macros that attempt to rationalize the EPS BoundingBox with
  1003. % the LaTeX page dimensions.
  1004. %
  1005. %    VSIZE      vertical white space to allow for plot
  1006. %    ROT        rotation angle
  1007. %    HSF        horiz scale factor
  1008. %    VSF        vert scale factor
  1009. %    HTRANS     horiz translation
  1010. %    VTRANS     vert translation
  1011.  
  1012. %\epsfverbosetrue
  1013.  
  1014. \def\plotone#1{\centering \leavevmode
  1015.     \epsfxsize=\columnwidth \epsfbox{#1}}
  1016.  
  1017. \def\plottwo#1#2{\centering \leavevmode
  1018.     \epsfxsize=.45\columnwidth \epsfbox{#1} \hfil
  1019.     \epsfxsize=.45\columnwidth \epsfbox{#2}}
  1020.  
  1021. \def\plotfiddle#1#2#3#4#5#6#7{\centering \leavevmode
  1022.     \vbox to#2{\rule{0pt}{#2}}
  1023.     \special{psfile=#1 voffset=#7 hoffset=#6 vscale=#5 hscale=#4 angle=#3}}
  1024.  
  1025. %\@input{abbrevs.sty}
  1026.  
  1027. %  ****************************************
  1028. %  *            ABBREVIATIONS             *
  1029. %  ****************************************
  1030.  
  1031. % Abbreviations for journals.  The object here is to provide authors
  1032. % with convenient shorthands for the most "popular" (often-cited)
  1033. % journals; the author can use these markup tags without being concerned
  1034. % about the exact form of the journal abbreviation, or its formatting.
  1035. % It is up to the keeper of the macros to make sure the macros expand
  1036. % to the proper text.  If macro package writers agree to all use the
  1037. % same TeX command name, authors only have to remember one thing, and
  1038. % the style file will take care of editorial preferences.  This also
  1039. % applies when a single journal decides to revamp its abbreviating
  1040. % scheme, as happened with the ApJ (Abt 1991).
  1041.  
  1042. \let\jnl@style=\rm
  1043. \def\ref@jnl#1{{\jnl@style#1}}
  1044.  
  1045. \def\aj{\ref@jnl{AJ}}            % Astronomical Journal
  1046. \def\araa{\ref@jnl{ARA\&A}}        % Annual Review of Astron and Astrophys
  1047. \def\apj{\ref@jnl{ApJ}}            % Astrophysical Journal
  1048. \def\apjl{\ref@jnl{ApJ}}        % Astrophysical Journal, Letters
  1049. \def\apjs{\ref@jnl{ApJS}}        % Astrophysical Journal, Supplement
  1050. \def\ao{\ref@jnl{Appl.Optics}}        % Applied Optics
  1051. \def\apss{\ref@jnl{Ap\&SS}}        % Astrophysics and Space Science
  1052. \def\aap{\ref@jnl{A\&A}}        % Astronomy and Astrophysics
  1053. \def\aapr{\ref@jnl{A\&A~Rev.}}        % Astronomy and Astrophysics Reviews
  1054. \def\aaps{\ref@jnl{A\&AS}}        % Astronomy and Astrophysics, Supplement
  1055. \def\azh{\ref@jnl{AZh}}            % Astronomicheskii Zhurnal
  1056. \def\baas{\ref@jnl{BAAS}}        % Bulletin of the AAS
  1057. \def\jrasc{\ref@jnl{JRASC}}        % Journal of the RAS of Canada
  1058. \def\memras{\ref@jnl{MmRAS}}        % Memoirs of the RAS
  1059. \def\mnras{\ref@jnl{MNRAS}}        % Monthly Notices of the RAS
  1060. \def\pra{\ref@jnl{Phys.Rev.A}}        % Physical Review A: General Physics
  1061. \def\prb{\ref@jnl{Phys.Rev.B}}        % Physical Review B: Solid State
  1062. \def\prc{\ref@jnl{Phys.Rev.C}}        % Physical Review C
  1063. \def\prd{\ref@jnl{Phys.Rev.D}}        % Physical Review D
  1064. \def\prl{\ref@jnl{Phys.Rev.Lett}}    % Physical Review Letters
  1065. \def\pasp{\ref@jnl{PASP}}        % Publications of the ASP
  1066. \def\pasj{\ref@jnl{PASJ}}        % Publications of the ASJ
  1067. \def\qjras{\ref@jnl{QJRAS}}        % Quarterly Journal of the RAS
  1068. \def\skytel{\ref@jnl{S\&T}}        % Sky and Telescope
  1069. \def\solphys{\ref@jnl{Solar~Phys.}}    % Solar Physics
  1070. \def\sovast{\ref@jnl{Soviet~Ast.}}    % Soviet Astronomy
  1071. \def\ssr{\ref@jnl{Space~Sci.Rev.}}    % Space Science Reviews
  1072. \def\zap{\ref@jnl{ZAp}}            % Zeitschrift fuer Astrophysik
  1073.  
  1074. \let\astap=\aap
  1075. \let\apjlett=\apjl
  1076. \let\apjsupp=\apjs
  1077.  
  1078. %\@input{misc.sty}
  1079.  
  1080. %  ****************************************
  1081. %  *            MISCELLANEOUS             *
  1082. %  ****************************************
  1083.  
  1084. % Handy little things everybody works out for themselves anyway.  Many
  1085. % of these come from Springer's A&A package, and some were contributed
  1086. % by Francois Schweizer at DTM.  You can go berserk making these up,
  1087. % especially when you start getting into the composite ones.  We have
  1088. % tried to select a tractable number that were useful, and somewhat
  1089. % difficult to get right because fussy kerning or some such is required.
  1090. % Most can be used in or out of math mode with impunity; \alt and \agt
  1091. % are relations and can only be used in math mode.
  1092.  
  1093. \def\deg{\hbox{$^\circ$}}
  1094. \def\sun{\hbox{$\odot$}}
  1095. \def\earth{\hbox{$\oplus$}}
  1096. \def\lesssim{\mathrel{\hbox{\rlap{\hbox{\lower4pt\hbox{$\sim$}}}\hbox{$<$}}}}
  1097. \def\gtrsim{\mathrel{\hbox{\rlap{\hbox{\lower4pt\hbox{$\sim$}}}\hbox{$>$}}}}
  1098. \def\sq{\hbox{\rlap{$\sqcap$}$\sqcup$}}
  1099. \def\arcmin{\hbox{$^\prime$}}
  1100. \def\arcsec{\hbox{$^{\prime\prime}$}}
  1101. \def\fd{\hbox{$.\!\!^{\rm d}$}}
  1102. \def\fh{\hbox{$.\!\!^{\rm h}$}}
  1103. \def\fm{\hbox{$.\!\!^{\rm m}$}}
  1104. \def\fs{\hbox{$.\!\!^{\rm s}$}}
  1105. \def\fdg{\hbox{$.\!\!^\circ$}}
  1106. \def\farcm{\hbox{$.\mkern-4mu^\prime$}}
  1107. \def\farcs{\hbox{$.\!\!^{\prime\prime}$}}
  1108. \def\fp{\hbox{$.\!\!^{\scriptscriptstyle\rm p}$}}
  1109. \def\micron{\hbox{$\mu$m}}
  1110.  
  1111. \let\la=\lesssim            % For Springer A&A compliance...
  1112. \let\ga=\gtrsim
  1113.  
  1114. % Permit author to typeset "case" fractions.  This is sometimes
  1115. % wanted in displayed equations, during which LaTeX will set fractions
  1116. % specified as \frac{x}{y} as "built-up" fractions (numerator and
  1117. % denominator at body text size).
  1118.  
  1119. \def\case#1#2{\hbox{$\frac{#1}{#2}$}}
  1120.  
  1121. % Permit author to typeset fractions set with solidus where the size
  1122. % is reduced and the numerals are oriented diagonally.  Note that this
  1123. % is different from a "shilled" fraction, which the author can produce
  1124. % without any special formatting markup.  Define markup shorthands for
  1125. % several common fractions using solidus.
  1126.  
  1127. \def\slantfrac#1#2{\hbox{$\,^#1\!/_#2$}}
  1128. \def\onehalf{\slantfrac{1}{2}}
  1129. \def\onethird{\slantfrac{1}{3}}
  1130. \def\twothirds{\slantfrac{2}{3}}
  1131. \def\onequarter{\slantfrac{1}{4}}
  1132. \def\threequarters{\slantfrac{3}{4}}
  1133.  
  1134. \def\ubvr{\hbox{$U\!BV\!R$}}        % UBVR system
  1135. \def\ub{\hbox{$U\!-\!B$}}        % U-B
  1136. \def\bv{\hbox{$B\!-\!V$}}        % B-V
  1137. \def\vr{\hbox{$V\!-\!R$}}        % V-R
  1138. \def\ur{\hbox{$U\!-\!R$}}        % U-R
  1139.  
  1140. % Notation for atomic species (ionization levels).  The ionization state
  1141. % is specified as the second argument, and should be given as a numeral.
  1142. % The macro has to expand the numeric state into the proper notation for
  1143. % the publication (roman, numeric, plus signs, etc.)
  1144. %
  1145. %    \ion{ELEMENT}{IONIZATION STATE}
  1146.  
  1147. \def\ion#1#2{#1$\;${\small\rm\@Roman{#2}}\relax}
  1148.  
  1149. % Centered ellipsis for use in tables (for unknown values).  \nodata
  1150. % is generalized markup for this notion: format of null-valued entries
  1151. % in tables is style-specific.
  1152.  
  1153. %\def\cellipsis{\hfill$\cdots$\hfill}
  1154. \def\nodata{\multicolumn{1}{c}{---}}
  1155.  
  1156. % This is a generalization of the \LaTeX definition that comes in LaTeX.
  1157. % The change here ensures that LaTeX will be typeset in the current style,
  1158. % rather than always in roman.
  1159.  
  1160. \newcount\lecurrentfam
  1161. \def\LaTeX{\lecurrentfam=\the\fam \leavevmode L\raise.42ex
  1162.         \hbox{$\fam\lecurrentfam\scriptstyle\kern-.3em A$}\kern-.15em\TeX}
  1163.  
  1164. %  ****************************************
  1165. %  *              DEBUGGING               *
  1166. %  ****************************************
  1167.  
  1168. \def\sizrpt{
  1169.     (\fontname\the\font): em=\the\fontdimen6\font, ex=\the\fontdimen5\font
  1170.     \typeout{
  1171.     (\fontname\the\font): em=\the\fontdimen6\font, ex=\the\fontdimen5\font
  1172. }}
  1173.